package com.atguigu.gulimall.member.service;

import com.atguigu.common.utils.R;
import com.atguigu.common.vo.SocialVO;
import com.atguigu.gulimall.member.vo.MemberLoginVo;
import com.atguigu.gulimall.member.vo.RegisterMemberVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author lihaojie
 * @email lihaojie@qq.com
 * @date 2023-11-03 20:27:55
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 注册会员功能
     * @param registerMemberVo
     */
    void registerMember(RegisterMemberVo registerMemberVo) throws RuntimeException;

    /**
     * 用户登录
     * @param memberLoginVo
     * @return
     */
    MemberEntity login(MemberLoginVo memberLoginVo);

    R socialLogin(SocialVO socialVO);
}

